<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>鼠标对象</title>
    <style type="text/css">
        body{
            height: 1300px;
        }
    </style>
</head>
<body>
<script type="text/javascript">
   window.onclick=function (event) {
       //考虑到浏览器兼容性，所以通过多种方式获取事件对象
         var ev=event||window.event;
         console.log(ev);
         console.log("浏览器可视窗口的x轴的坐标"+ev.clientX);
         console.log("浏览器可视窗口的y轴的坐标"+ev.clientY);
         console.log("页面中x轴的坐标"+ev.pageX);
         console.log("页面中y轴的坐标"+ev.pageY);
       console.log("电脑屏幕中x轴的坐标"+ev.screenX);
       console.log("电脑屏幕y轴的坐标"+ev.screenY);

   }






</script>
</body>
</html>